package com.bootdo.clouddo.dao.book;

import com.bootdo.clouddo.dao.BaseMapper;
import com.bootdo.clouddo.domain.book.BookBookmark;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookBookmarkMapper extends BaseMapper<BookBookmark> {

    List<BookBookmark> findByUid(@Param("bookId") Long bookId, @Param("siteId") Integer siteId, @Param("uid") Long uid);

    int deleteByBook(@Param("bookId") Long bookId, @Param("siteId") Integer siteId, @Param("url") String url, @Param("uid") Long uid);
}